package com.mikhailenko.transportMVC.service.es;

import java.util.List;

import com.mikhailenko.transportMVC.exeption.es.LayerNotFoundExeption;
import com.mikhailenko.transportMVC.model.es.LayerEntity;

public interface LayerService {

    public LayerEntity create(LayerEntity layer);
    
    public LayerEntity delete(int id) throws LayerNotFoundExeption;
    
    public List<LayerEntity> findAll();
    
    public LayerEntity update(LayerEntity layer) throws LayerNotFoundExeption;
    
    public LayerEntity findById(int id);
    
    public List<LayerEntity> findByEsId(int id);
    
}
